package com.wsz.user.controller;

import com.wsz.pojo.R;
import com.wsz.user.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/record")
public class RecordController {
    @Autowired
    private RecordService recordService;

    @GetMapping("/list/{limit}/{page}")
    public R getList(@PathVariable Long limit,
                     @PathVariable Long page){
        return recordService.selectList(limit,page);
    }

}
